package org.fordprefect.struts2jscalendarplugin.views.velocity.components;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.components.Component;
import org.fordprefect.struts2jscalendarplugin.components.Head;
import org.fordprefect.struts2jscalendarplugin.views.JSCalendarTagLibrary;

import com.opensymphony.xwork2.util.ValueStack;

/**
 * @see org.fordprefect.struts2jscalendarplugin.components.Head
 */
public class HeadDirective extends JSCalendarAbstractDirective {
	@Override
	protected Component getBean(ValueStack stack, HttpServletRequest req,
			HttpServletResponse res) {
		return new Head(stack, req, res);
	}

	@Override
	public String getBeanName() {
		return JSCalendarTagLibrary.HEAD_TAG_NAME;
	}
}
